
<?php
function head(){

echo 
"
<!DOCTYPE html>
<html lang=\"cs\">
<head>
<title>Úkol 7 - BMI App</title>
<meta charset=\"utf-8\">
<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">

</head>
<body>
";
}

function ShowMenu2($name){
echo "<div id=\"menu\">
<ul>
<li><a href=\"../../index.html\">Home</a></li>
<li><a href=\"Mojetesty.php\">Moje Testy</a></li>
<li><a href=\"NovyTest.php\">Nový Test</a></li>
<li><a href=\"index.php?command_id=7\">Log out</a>
<li id=\"leftli\">Jste přihlášen jako: ".$name."</li>

</ul>
</div>";

}


function ShowMenu(){
echo "<div id=\"menu\">
<ul>
<li><a href=\"../../index.html\">Home</a></li>
<li><a href=\"index.php\">Login</a></li>
<li><a href=\"index.php?command_id=2\">Sign up</a></li>
</ul>
</div>";

}

function Top2($name){
head();
ShowHeader();
ShowMenu2($name);
}


function ShowHeader(){
echo "<div id=\"MyHeader\">";
echo "<a href=\"http://fbmi.cvut.cz/\"><img src=\"../../fbmi.jpg\" alt=\"fbmi\"></a>BMI";
echo "</div>";
}

function Top(){
head();
ShowHeader();
ShowMenu();
}

function ShowFooter(){
echo "<br><br>";
echo "<Footer>";
echo "HavelVojta@seznam.cz";
echo "</Footer>";
}

?>
